﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Fjaspx.UI.Web.Administrator.go
{
    public partial class admin_objet : AdminPage
    {
        /// <summary>
        /// Handles the Load event of the Page control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack) {
                Bind(); if (Request["del"] != null) { ___ROYcms_Objet_bll.Delete(Convert.ToInt32(Request["del"])); Bind(); } 
            }
        }
        /// <summary>
        /// Binds this instance.
        /// </summary>
        void Bind() 
        {
            Repeater_admin.DataSource = ___ROYcms_Objet_bll.GetAllList();
            Repeater_admin.DataBind();
        }
    }
}
